<%-- 
    Document   : bookPage
    Created on : Feb 25, 2012, 8:20:10 PM
    Author     : inahbanana
--%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@page import="DBConnection.ConnectionFactory"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Books</title>
        
       
        <link rel = "stylesheet" href= "main.css" type="text/css"/>
        <link rel = "stylesheet" href= "menu.css" type="text/css"/>
        <link rel = "stylesheet" href= "loginreg.css" type="text/css"/>
    </head>
    <body>
        <%
         String remoteAdd = request.getRemoteAddr();
        String Address = (String)session.getAttribute("IPAdd");
        String username = (String)session.getAttribute("username");
        
        if((String)session.getAttribute("username")== null)
            {
            response.sendRedirect("home.jsp");
            }
               
                             
             
        else{ %>
                 
   
          <label class="welcomemessage"> <% out.print("Welcome ");
                out.print(username);
                      out.println("!"); }%></label>
        <%--header--%>
        <div id="header">
           
        </div>
        <%--header--%>
        
        
        <%--menu--%>
        <div id="tabs24">   
             <ul>          
                <li><a href="aboutusPage.jsp" >About Us</a></li>
                <li><a href="userHomePage.jsp" >Home</a></li>
                <li><a href="bookPage.jsp" >Books</a></li>
                <li><a href="magPage.jsp" >Magazines</a></li>
                <li><a href="audioPage.jsp" >Audio CDs</a></li>
                <li><a href="dvdPage.jsp" >DVDs</a></li>
                <li><a href="creditCard.jsp" >Manage Credit Cards</a></li>
             </ul>   
        </div>
        <%--menu--%>
        
        <%--centercontent--%>
    <center>
        <div id="maincontainer">
           <label>BESTSELLERS</label>
           <div id="BestSellersContainer">
               
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="books\bookHGhg.jpg" /></div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Hunger Games</div>
                    <p class="details"> Katniss is a 16-year-old girl living with her mother and younger sister in the poorest district of Panem, the remains of what used be the United States. Long ago the districts waged war on the Capitol and were defeated. As part of the surrender terms, each district agreed to send one boy and one girl to appear in an annual televised event called, "The Hunger Games." The terrain, rules, and level of audience participation may change but one thing is constant: kill or be killed. When her sister is chosen by lottery, Katniss steps up to go in her place. </p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>
               </div>
               </div>
               </div>
           <br>
           <br>
           <%-- NEXT FEATURED --%>  
           <br>
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="books\bookDSuh.jpg" /></div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Untamed Highlander</div>
                    <p class="details"> Druid-born and magic-blessed, Isla is one of the deadliest she-devils ever to serve the forces of darkness. As an immortal Highland warrior, it?s up to Hayden Campbell to destroy her and her kind. But for Hayden, Isla is more than a sworn enemy. She is temptation?</p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>
               </div>
               </div>
               </div>
           </div>
       </div>
    </center>
    <center>
        <form class="viewBooks" name="viewBooks" method="post" action="viewBooks.jsp">
            <input type="submit" name="viewBooks" value="View Books"/>
        </form>
    </center>
       <%--centercontent--%>
    </body>
</html>
